#{extends 'CRUD/layout.html' /}
#{set title:messages.get('nosology.edit') /}

<div id="crudShow" class="${type.name}">

    <h2 id="crudShowTitle">&{'nosology.edit'}</h2>

    <div class="objectForm">
    #{form action:@save(object._key()), enctype:'multipart/form-data'}
        #{crud.form fields:['nosologyName', 'syndrome']/}
        <p class="crudButtons">
            <input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
            <input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
        </p>
    #{/form}
    </div>

    #{form @delete(object._key())}
        <p class="crudDelete">
            <input type="submit" value="&{'nosology.delete'}" onclick="return confirm('&{'nosology.delete'}')"/>
        </p>
    #{/form}

</div>